package com.fanqiechaodan.templatemethod;

/**
 * @author fanqiechaodan
 * @Classname AmericanoMaker
 * @Description 美式咖啡
 */
public class AmericanoMaker extends CoffeeMaker{

    @Override
    protected void brewCoffee() {
        System.out.println("冲泡美式咖啡");
    }

    @Override
    protected void addCondiments() {
        System.out.println("加入牛奶和糖");
    }

    /**
     * 钩子函数;是否加入调料,由子类决定是否重写
     *
     * @return
     */
    @Override
    protected boolean isCondiments() {
        return false;
    }
}
